/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-around;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

.nav-item {
    text-align: center;
    font-size: 14px;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.nav-item i {
    display: block;
    font-size: 20px;
    margin-bottom: 5px;
}

.nav-item.active {
    transform: scale(1.1);
    font-weight: bold;
}

.nav-item:hover {
    transform: translateY(-3px);
}

/* 搜索区域 */
.search {
    width: 100%;
    height: 100px;
}

/* 内容区域 */
.content {
    margin-top: 50px;
    padding: 15px;
}

/* 图片网格布局 */
.photo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.photo-item {
    width: 48%;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-color: white;
}

.photo-item:hover {
    transform: translateY(-5px);
}

.photo-img {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
}

.photo-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-item:hover .photo-img img {
    transform: scale(1.05);
}

.photo-info {
    padding: 10px;
}

.photo-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo-date {
    font-size: 12px;
    color: #888;
}

/* 加载更多按钮 */
.load-more {
    display: block;
    width: 80%;
    margin: 20px auto;
    padding: 12px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(107, 119, 251, 0.4);
    transition: all 0.3s ease;
}

.load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 119, 251, 0.6);
}